/**
 * BillException.java
 * com.tc.client.blacktea.api
 *
 * Function： TODO 
 *
 *   ver     date      		author
 * ──────────────────────────────────
 *   		 2012-7-2 		wangjieming
 *
 * Copyright (c) 2012, TNT All Rights Reserved.
 */

package com.jamin.aabill.api;



/**
 * ClassName:BillException
 *
 * @author   wangjieming
 * @version  1.0
 * @since    v1.0
 * @Date	 2012-7-2 下午4:50:35 
 */
public class BillException extends Exception{

	/**
	 * serialVersionUID:TODO（用一句话描述这个变量表示什么）
	 *
	 * @since v1.0
	 */
	private static final String TAG = "BillException========";
	private static final long serialVersionUID = 8451226386437629770L;

	
	private String msg = null;

	private int statusCode = -1;

	public BillException(String msg) {
		super(msg);
		this.msg = msg;
	}

	
	public BillException(Exception cause) {
		super(cause);
		this.msg = cause.getMessage();
	}

	
	public BillException(String msg, int statusCode) {
		super(msg);
		this.msg = msg;
		this.statusCode = statusCode;

	}

	public BillException(String msg, Exception cause) {
		super(msg, cause);
		this.msg = msg;
	}

	public BillException(String msg, Exception cause, int statusCode) {
		super(msg, cause);
		this.msg = msg;
		this.statusCode = statusCode;

	}

	public int getStatusCode() {
		return this.statusCode;
	}

	public String getErrorMsg(){
		return msg;
	} 




}





